﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Public;

namespace DAL
{
    public class KhaiTuDAL
    {
        public static KhaiTuPublic LoadKhaiTuByMaKT(int MaKT, string TenSever, string Data)
        {
            string chuoi = "select * from [" + TenSever + "].[" + Data + "].[dbo].[KhaiTu] where MaKT=" + MaKT;
            var ks = Common.db.ExecuteStoreQuery<KhaiTuPublic>(chuoi);
            return ks.FirstOrDefault();
        }
    }
}
